package com.yumeng.common.exception;

import com.yumeng.common.api.ApiCode;

/**
 * 基础数据库异常
 *
 * @author wxd
 * @date 2023/3/21 10:24
 */
public abstract class BaseDBException extends BaseException{

    public BaseDBException(Throwable e) {
        super(e);
    }

    public BaseDBException(String message, Object... args) {
        super(message, args);
    }

    public BaseDBException(Throwable e, String message, Object... args) {
        super(e, message, args);
    }

    @Override
    protected ApiCode defaultApiCode(){
        return ApiCode.DB_EXCEPTION;
    }
}
